home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10137 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: EU.net!sun4nl!xs4all!falstaff
  2. From: falstaff@xs4all.nl (Falstaff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C coding standards
  5. Date: 15 Mar 1996 18:25:46 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4iccna$oqi@news.xs4all.nl>
  8. References: <313B4548.45AA@oc.com> <DnuLzM.8xr@gti-ia.nl> <4i9m00$aqi@infa.central.susx.ac.uk>
  9. NNTP-Posting-Host: xs1.xs4all.nl
  10. X-Newsreader: NN version 6.5.0 #666 (NOV)
  11.  
  12. mattst@cogs.susx.ac.uk (Matthew Stanfield) writes:
  13.  
  14. >> It suggests that a _guideline_ to function length would be one page long; going on
  15. >> to say that a page could be 25 lines 60 lines or even 120 lines depending upon wha
  16. >> you use for display.
  17.  
  18. Unless the function performs an unavoidable *linear* function, i.e.
  19. straight-line code, but lots of it, which are used only once.
  20.  
  21. This tends to give long functions (200 lines or more) and I often feel
  22. guilty about this, but I write them only if there really is no other way
  23. around it.
  24. In these cases, splitting up the function into several smaller ones
  25. actually makes the code *harder* to understand.
  26.  
  27. Frank
  28. --
  29. The famous GIICM now on line:  http://www.xs4all.nl/~falstaff/GIICM.html
  30. ------------------------------------------------------------------------
  31. Frank A. Vorstenbosch        +31-(70)-355 5241        falstaff@xs4all.nl
  32.